package com.itheima.edu.info.manager.domain;

public class Fruit {
    private String id;
    private String fruitName;
    private int fruitPrice;
    private int inventory;

    public Fruit() {
    }

    public Fruit(String id, String fruitName, int fruitPrice, int inventory) {
        this.id = id;
        this.fruitName = fruitName;
        this.fruitPrice = fruitPrice;
        this.inventory = inventory;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName;
    }

    public int getFruitPrice() {
        return fruitPrice;
    }

    public void setFruitPrice(int fruitPrice) {
        this.fruitPrice = fruitPrice;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    @Override
    public String toString() {
        return getId() + "," + getFruitName() + "," + getFruitPrice() + "," + getInventory();
    }
}
